#include <windows.h>
#include "CInventorySizePacket.h"
#include "CChar.h"

CInventorySizePacket::CInventorySizePacket(CChar * schar) {

	this->type = 0x1C;
	this->size = 0x0A;
	memset(data, 0, sizeof(data));

	data[0x04-0x04] = schar->getSizeInvStor(0)+1;
	data[0x05-0x04] = schar->getSizeInvStor(1)+1;
	data[0x06-0x04] = schar->getSizeInvStor(2)+1;
	data[0x07-0x04] = schar->getSizeInvStor(4)+1;

	data[0x0A-0x04] = schar->getSizeInvStor(0)+1;
	data[0x0C-0x04] = schar->getSizeInvStor(1)+1;
	data[0x0E-0x04] = schar->getSizeInvStor(2)+1;
	data[0x10-0x04] = schar->getSizeInvStor(4)+1;

}

CInventorySizePacket::~CInventorySizePacket() {

}